package com.qf.service.impl;

import com.qf.entity.MallGoodsTemplateEntity;
import com.qf.mapper.TemplateMapper;
import com.qf.service.ITemplateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class TemplateService implements ITemplateService {

    @Autowired
    private TemplateMapper mapper;
    @Override
    public List<MallGoodsTemplateEntity> findByPage(MallGoodsTemplateEntity entity) {

        return mapper.findByPage(entity);
    }

    @Override
    public int delete(String id) {
        return mapper.delete(id);
    }

    @Override
    public int add(MallGoodsTemplateEntity entity) {
        return mapper.add(entity);
    }

    @Override
    public int update(MallGoodsTemplateEntity entity) {
        return mapper.update(entity);
    }
}
